<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div style="margin: 10px;background-color: lightblue;">
        <img src="../../assets/css.webp" style="float: left;height: 60px;" />
        <div style="clear: left;">clear:left 抗左浮动</div>
    </div>

    <div style="clear: both;border: 1px solid black;margin: 10px;"></div>

    <div style="margin: 10px;background-color: lightblue;">
        <img src="../../assets/css.webp" style="float: right;height: 60px;" />
        <div style="clear: left;">clear:left 抗左浮动</div>
    </div>
    
    <div style="clear: both;border: 1px solid black;margin: 10px;"></div>
    
    <div style="margin: 10px;background-color: lightblue;">
        <img src="../../assets/css.webp" style="float: left;height: 60px;" />
        <div style="clear: right;">clear:right 抗右浮动</div>
    </div>
    <div style="clear: both;border: 1px solid black;margin: 10px;"></div>
    <div style="margin: 10px;background-color: lightblue;">
        <img src="../../assets/css.webp" style="float: right;height: 60px;" />
        <div style="clear: right;">clear:right 抗右浮动</div>
    </div>

    <div style="clear: both;border: 1px solid black;margin: 10px;"></div>
    <div style="margin: 10px;background-color: lightblue;">
        <img src="../../assets/css.webp" style="float: right;height: 60px;" />
        <img src="../../assets/css.webp" style="float: left;height: 60px;" />
        <img src="../../assets/css.webp" style="float: left;height: 60px;" />
        <img src="../../assets/css.webp" style="float: right;height: 60px;" />
        <img src="../../assets/css.webp" style="float: left;height: 60px;" />
        <div style="clear: right;">clear:right 抗右浮动</div>
    </div>
    <div style="clear: both;border: 1px solid black;margin: 10px;"></div>
    <div style="margin: 10px;background-color: lightblue;">
        <img src="../../assets/css.webp" style="float: right;height: 60px;" />
        <div style="clear: both;">clear:both 抗左右</div>
    </div>
    <div style="clear: both;border: 1px solid black;margin: 10px;"></div>
    <div style="margin: 10px;background-color: lightblue;">
        <img src="../../assets/css.webp" style="float: left;height: 60px;" />
        <div style="clear: both;">clear:both 抗左右</div>
    </div>
    <div style="clear: both;border: 1px solid black;margin: 10px;"></div>
</body>

</html>